package exceptionTest;

import org.junit.Test;

import java.rmi.ServerException;

public class Exceptions {
    @Test
    public void run() throws ServerException {
        try {
            throw new ServiceException("error");
        } catch (ServiceException e) {
            System.out.println(e);
        } catch (Exception e) {
            System.out.println("Exception");
        }
    }
}
